package com.md.drcs.dicom.dao;

import com.md.common.utils.dao.MyMapper;
import com.md.drcs.dicom.entity.ImageEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ImageDao extends MyMapper<ImageEntity> {

    @Select("<script>" +
            " select * from  t_image where nSeriId in " +
            " <foreach collection='seriesIds' item='seriesId' open='(' separator=',' close=')'>" +
            " #{seriesId}" +
            " </foreach>" +
            "</script>")
    List<ImageEntity> findBySeriesIds(@Param("seriesIds") List<Long> seriesIds);

}
